emacs.git
10 years agoDocument protocols supported by URL library via Tramp
Eli Zaretskii [Sat, 26 Dec 2015 12:59:50 +0000 (14:59 +0200)]
Document protocols supported by URL library via Tramp

* doc/misc/url.texi (Tramp): New node, describes the URL schemes
supported via Tramp.
(Supported URL Types, file/ftp, rlogin/telnet/tn3270): Mention
Tramp.

10 years agoDocument changes in Shell-script mode
Eli Zaretskii [Sat, 26 Dec 2015 11:48:00 +0000 (13:48 +0200)]
Document changes in Shell-script mode

* lisp/progmodes/sh-script.el (sh-mode, sh-set-shell): Document
the 'sh-shell' file-local variable.
(top level): Add an auto-load form to avoid byte-compiler warning
about 'comint-send-string'.

10 years agoFix documentation of 'ses-define-local-printer'
Eli Zaretskii [Sat, 26 Dec 2015 11:16:15 +0000 (13:16 +0200)]
Fix documentation of 'ses-define-local-printer'

* doc/misc/ses.texi (Printer functions): Fix whitespace between
sentences and punctuation.  Add an index entry for
'ses-define-local-printer'.

10 years agoDocument 'ert-summarize-tests-batch-and-exit'
Shakthi Kannan [Sat, 26 Dec 2015 11:05:06 +0000 (13:05 +0200)]
Document 'ert-summarize-tests-batch-and-exit'

* doc/misc/ert.texi (Running Tests in Batch Mode): Document
'ert-summarize-tests-batch-and-exit'.

10 years agoAvoid assertion violation in unbind_to
Eli Zaretskii [Sat, 26 Dec 2015 10:43:08 +0000 (12:43 +0200)]
Avoid assertion violation in unbind_to

* src/eval.c (unbind_to) <SPECPDL_LET>: Avoid assertion violation
if we get here with an object that is not a symbol.  (Bug#14412)

10 years agoDon't treat /foo/bar:mumble as ange-ftp address
Andreas Schwab [Fri, 25 Dec 2015 22:32:55 +0000 (23:32 +0100)]
Don't treat /foo/bar:mumble as ange-ftp address

* lisp/net/browse-url.el (browse-url-filename-alist): Match colons
only in the first component.  (bug#5362)

10 years agoFollow <meta> redirects in eww
Lars Ingebrigtsen [Fri, 25 Dec 2015 17:18:42 +0000 (18:18 +0100)]
Follow <meta> redirects in eww

Merge conflict, but I think I resolved it.

    Follow meta refresh tags in eww

    * eww.el (eww-tag-meta): Follow meta refresh tags (bug#22234).

Backport:

10 years agoAllow http://user:pass@foo/ URLs again
Lars Ingebrigtsen [Fri, 25 Dec 2015 19:21:46 +0000 (20:21 +0100)]
Allow http://user:pass@foo/ URLs again

* lisp/url/url-auth.el (url-basic-auth): Allow explicit
user/passwords in URLs (bug#19046).

Backport:

(cherry picked from commit b563715a2db265517d5a77f165a42afa1e233fdd)

10 years agoAutoload url-insert-buffer-contents
Samer Masterson [Fri, 25 Dec 2015 18:04:55 +0000 (19:04 +0100)]
Autoload url-insert-buffer-contents

* lisp/url/url-handlers.el: Add autoload cookie so that
`package-list-packages' doesn't bug out (bug#21927) (tiny change)

Backport:

(cherry picked from commit 7a7b5b492ff9929eecd90c4564db6fbf3b192323)

10 years agoMake sure *scratch* etc. use forward slashes in its default-directory
Eli Zaretskii [Fri, 25 Dec 2015 16:37:31 +0000 (18:37 +0200)]
Make sure *scratch* etc. use forward slashes in its default-directory

* lisp/startup.el (normal-top-level): On MS-Windows, convert
backslashes to forward slashes while decoding default-directory
of the initially-created buffers.

10 years agoMore eww file name coding fixes
Lars Ingebrigtsen [Fri, 25 Dec 2015 07:31:10 +0000 (08:31 +0100)]
More eww file name coding fixes

* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.

Backport:

(cherry picked from commit a8627008abe4ab339df19b417776da28b3ce0fc7)

10 years agoAlways save eww history
Lars Ingebrigtsen [Fri, 25 Dec 2015 06:56:08 +0000 (07:56 +0100)]
Always save eww history

* eww.el (eww-setup-buffer): Always save history, even when
called from outside the eww buffer (bug#19638).

Backport:

(cherry picked from commit 2a0f18d9b6ce0ccce3d9c4a4a3b5743bae71b41e)

10 years agoDefault web pages to right-to-left
Lars Ingebrigtsen [Fri, 25 Dec 2015 06:45:27 +0000 (07:45 +0100)]
Default web pages to right-to-left

* eww.el (eww-mode): Most web pages are left-to-right, so make
that the default (bug#19801).

* shr.el (shr-tag-html): Respect "dir" attributes
(left-to-right, right-to-left).

Backport:

(cherry picked from commit 9e089ec8a380ec3758fcf1564c5f86dc92c68c2a)

10 years agoMake toggling checkboxes work again
Lars Ingebrigtsen [Fri, 25 Dec 2015 05:47:28 +0000 (06:47 +0100)]
Make toggling checkboxes work again

* eww.el (eww-update-field): Make toggling checkboxes work
again (bug#21881).

Backport:

(cherry picked from commit 5e56f606952e5e81b4d3a93ea70e791b74b33041)

10 years agoDon't store cookies with empty names
Lars Ingebrigtsen [Fri, 25 Dec 2015 05:33:25 +0000 (06:33 +0100)]
Don't store cookies with empty names

* lisp/url/url-cookie.el (url-cookie-store): Refuse to store
cookies with empty names (bug#21936).

Backport:

(cherry picked from commit 9f0fd7cb1aec3eb9e2e0f7b8854c30870286d96c)

10 years agoStop rendering HTML before specdlr exhaustion
Lars Ingebrigtsen [Fri, 25 Dec 2015 05:19:34 +0000 (06:19 +0100)]
Stop rendering HTML before specdlr exhaustion

Fixes: 22117
* shr.el (shr-descend): Stop rendering before we run out of
specpdl room (bug#22117).

Backport:

(cherry picked from commit 248da292fe46224b0b5a79b632c89cf4de2c2081)

10 years agoUse cl-reduce, not reduce.
Lars Ingebrigtsen [Fri, 25 Dec 2015 05:04:01 +0000 (06:04 +0100)]
Use cl-reduce, not reduce.

Backport:

(cherry picked from commit fe4606f93b91ff3d046aee0cf21ecc277af7a786)

10 years agoAllow several <tbody> tags in shr
Lars Ingebrigtsen [Fri, 25 Dec 2015 05:01:19 +0000 (06:01 +0100)]
Allow several <tbody> tags in shr

* shr.el (shr-table-body): New function to find the real body
of a table.
(shr-tag-table): Use it to render several <tbody> tags in a
table (bug#22170).

Backport:

(cherry picked from commit cdaf33029d6620073833876d76056045ecfbc7c4)

10 years agoMake prettier unique file names in eww
Lars Ingebrigtsen [Thu, 24 Dec 2015 21:47:58 +0000 (22:47 +0100)]
Make prettier unique file names in eww

(eww-make-unique-file-name): Make unique file names by making
files like foo(2).jpg instead of foo(1)(2).jpg.

Backport:

(cherry picked from commit edfdd0a6cbdfa9e5e4bd0553e2b489401ca39266)

10 years agoDecode hex-encoded URLs before using them as file names
Lars Ingebrigtsen [Thu, 24 Dec 2015 21:21:24 +0000 (22:21 +0100)]
Decode hex-encoded URLs before using them as file names

* eww.el (eww-decode-url-file-name): New function.
(eww-download-callback): Use it to decode file names before
saving them.

Backport:

(cherry picked from commit af22a010d87516c2a646572fb27512c03057784f)

10 years agoAdd FreeBSD cert bundle
Ashish SHUKLA [Thu, 24 Dec 2015 17:54:41 +0000 (18:54 +0100)]
Add FreeBSD cert bundle

* doc/misc/emacs-gnutls.texi (Help For Users): Document
FreeBSD bundle.

* lisp/net/gnutls.el (gnutls-trustfiles): Add FreeBSD cert bundle.

Backport:

(cherry picked from commit 60c0f1a18ad88d6dc1a8f4ee5d9d18940eaeb6f7)

10 years agoIgnore invalid SVG images
Lars Ingebrigtsen [Thu, 24 Dec 2015 13:40:16 +0000 (14:40 +0100)]
Ignore invalid SVG images

* shr.el (shr-tag-svg): Ignore SVG images that have no width
or height, because these can't be displayed by ImageMagick,
anyway.

Backport:

(cherry picked from commit 821107d53c2e390240d25c036b99ebbf9b4a93b6)

10 years agoshr table rendering fix
Lars Ingebrigtsen [Thu, 24 Dec 2015 13:00:38 +0000 (14:00 +0100)]
shr table rendering fix

* shr.el (shr-tag-table): Allow rendering body-less tables
that have headers.

Backport:

(cherry picked from commit b05471e42c17e02c56c87d7599ada0c124a5fe09)

10 years agoRestore info about the build host in bug reports
Eli Zaretskii [Fri, 25 Dec 2015 11:35:08 +0000 (13:35 +0200)]
Restore info about the build host in bug reports

* lisp/mail/emacsbug.el (report-emacs-bug): Report the system on
which Emacs was built.  This is important information for
investigating bug reports reported by users who don't build their
Emacs.

10 years agoFix bootstrap broken by changes related to OS X file-name encoding
Eli Zaretskii [Fri, 25 Dec 2015 11:23:17 +0000 (13:23 +0200)]
Fix bootstrap broken by changes related to OS X file-name encoding

* lisp/international/ucs-normalize.el (eval-when-compile): Make
sure char-code-property-alist includes elements that allow access
to 'decomposition' and 'canonical-combining-class' Unicode
properties, as compiling ucs-normalize.el requires that.
* lisp/loadup.el (featurep 'ns): Load ucs-normalize and ns-win
only of charprop.el was already loaded.

* src/Makefile.in ($(lispsource)/international/ucs-normalize.elc):
New order-only dependency.

10 years ago* ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename.
Leo Liu [Fri, 25 Dec 2015 11:10:13 +0000 (19:10 +0800)]
* ido.el (ido-add-virtual-buffers-to-list): Use bookmark-get-filename.

10 years ago; Re-enabled "File-name completion of non-ASCII characters on OS X (bug#22169)""
Anders Lindgren [Fri, 25 Dec 2015 09:55:38 +0000 (10:55 +0100)]
; Re-enabled "File-name completion of non-ASCII characters on OS X (bug#22169)""

; This reverts commit d107eda498f94423d846b0e2f1be7facab417b2a.

; A follow-up to this will be made to ucs-normalize.el etc. to ensure that building from scratch works.

10 years agoMake tramp-test29-vc-registered more robust
Michael Albinus [Fri, 25 Dec 2015 09:45:20 +0000 (10:45 +0100)]
Make tramp-test29-vc-registered more robust

* test/automated/tramp-tests.el (tramp-test29-vc-registered):
Move `bzr' case down.  Skip test when `vc-create-repo' fails.
Remove instrumentation.

10 years ago; Revert "File-name completion of non-ASCII characters on OS X (bug#22169)"
Anders Lindgren [Thu, 24 Dec 2015 08:50:26 +0000 (09:50 +0100)]
; Revert "File-name completion of non-ASCII characters on OS X (bug#22169)"

; This reverts commit 09053075225fec8a6cf7a72017a6dfc1ec6b6f0c.

; This caused a build from scratch to fail.

10 years ago* lisp/term/x-win.el (x-gtk-stock-map): Fix typo.
YAMAMOTO Mitsuharu [Thu, 24 Dec 2015 08:46:01 +0000 (17:46 +0900)]
* lisp/term/x-win.el (x-gtk-stock-map): Fix typo.

10 years agoFix `gnus-union' so as to behave like `cl-union'
Katsumi Yamaoka [Wed, 23 Dec 2015 23:08:55 +0000 (23:08 +0000)]
Fix `gnus-union' so as to behave like `cl-union'

* lisp/gnus/gnus-group.el (gnus-group-prepare-flat):
Make gnus-union use `equal' to compare items in lists.

* lisp/gnus/gnus-util.el (gnus-union):
Make it behave like cl-union partially.

10 years agoFix dired.c typo with ptrdiff_t vs Lisp_Object
Paul Eggert [Wed, 23 Dec 2015 19:47:52 +0000 (11:47 -0800)]
Fix dired.c typo with ptrdiff_t vs Lisp_Object

* src/dired.c (file_name_completion): Don't assume Lisp_Object is
an integer type, fixing a problem introduced in the recent fix for
Bug#22169.

10 years agoDocument default process sentinel more prominently
Eli Zaretskii [Wed, 23 Dec 2015 18:06:28 +0000 (20:06 +0200)]
Document default process sentinel more prominently

* doc/lispref/processes.texi (Asynchronous Processes): Mention the
defaults for process filter and sentinel.  Provide cross-references.
(Process Information): Provide cross-references to where filters
and sentinels are described.
(Filter Functions): Add an index entry for "default filter".
(Sentinels): Add a few status messages not documented previously.
Resolve the "killed" confusion.  Document and describe the default
sentinel.  (Bug#22220)

10 years agoFix file-name completion on OS X
Eli Zaretskii [Wed, 23 Dec 2015 17:34:00 +0000 (19:34 +0200)]
Fix file-name completion on OS X

* src/dired.c (file_name_completion): Reject false matches due to
file-name-coding-systems that decompose characters when encoding
file names, by comparing decoded file names as well.  (Bug#22169)
(syms_of_dired) <Qdecomposed_characters>: New DEFSYM.

* lisp/international/ucs-normalize.el (utf-8-hfs): Give it a
non-nil 'decomposed-characters' property.

10 years agoFile-name completion of non-ASCII characters on OS X (bug#22169)
Anders Lindgren [Wed, 23 Dec 2015 06:15:45 +0000 (07:15 +0100)]
File-name completion of non-ASCII characters on OS X (bug#22169)

The coding system `utf-8-nfd', locally defined in ns-win.el,
didn't provide a :pre-write-conversion method, causing file name
completion of non-ASCII characters to fail.  Solved by using the
`utf-8-hfs' coding system provided by `ucs-normalize'.

* lisp/loadup.el: Load international/ucs-normalize (when building
for ns).

* lisp/term/ns-win.el (utf-8-nfd): Made `utf-8-nfd' as alias for
`utf-8-hfs' and removed the old implementation.  Set `utf-8-hfs'
as the file name coding system.

* src/nsfns.c (ns-convert-utf8-nfd-to-nfc): Removed.

10 years agoFix bug #18588 by making bug-reference-bug-regexp more lenient
Tom Tromey [Wed, 23 Dec 2015 00:02:59 +0000 (17:02 -0700)]
Fix bug #18588 by making bug-reference-bug-regexp more lenient

* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Accept
"bug NNNN".  (Bug #18588)

10 years agoadd some cl-* aliases to lisp-mode imenu
Tom Tromey [Tue, 22 Dec 2015 23:53:05 +0000 (16:53 -0700)]
add some cl-* aliases to lisp-mode imenu

* (lisp-imenu-generic-expression): Add cl-define-compiler-macro,
cl-defgeneric, and cl-defmethod.

10 years agoMake a variable buffer-local
Tom Tromey [Sun, 20 Dec 2015 03:11:49 +0000 (20:11 -0700)]
Make a variable buffer-local

* lisp/generic-x.el (generic-rul-mode-setup-function): Make
font-lock-syntax-table buffer-local.  (Bug #21627)

10 years agoFix decoding of text in URLs retrieved by EWW
Eli Zaretskii [Tue, 22 Dec 2015 16:57:51 +0000 (18:57 +0200)]
Fix decoding of text in URLs retrieved by EWW

* lisp/net/eww.el (eww-render): Pass 'charset' to
'eww-display-raw'.  Use the value of 'last-coding-system-used', if
non-nil, to set 'buffer-file-coding-system' of the buffer where we
show the URL.
(eww-display-html, eww-display-raw): Decode the text correctly,
using the charset found in the headers, and defaulting to UTF-8.
If the user told us to use a specific encoding, override the
charset from the headers.  (Bug#22222)

10 years agoFix a coding error in c-forward-<>-arglist-recur. Fixes bug#22156
Alan Mackenzie [Tue, 22 Dec 2015 16:10:35 +0000 (16:10 +0000)]
Fix a coding error in c-forward-<>-arglist-recur.  Fixes bug#22156

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): Remove unused
variable `tmp'.
After a failed search for a matching ">", restore point before continuing.

10 years agoInstrument Tramp tests
Michael Albinus [Tue, 22 Dec 2015 11:02:58 +0000 (12:02 +0100)]
Instrument Tramp tests

* test/automated/tramp-tests.el (tramp-test29-vc-registered)
(tramp--test-utf8): Instrument tests.

10 years agoFix `display-buffer' call in `display-message-or-buffer' (Bug#22221)
Martin Rudalics [Tue, 22 Dec 2015 08:19:21 +0000 (09:19 +0100)]
Fix `display-buffer' call in `display-message-or-buffer' (Bug#22221)

* lisp/simple.el (display-message-or-buffer): Call
`display-buffer' with ACTION instead of NOT-THIS-WINDOW
(Bug#22221).

10 years ago* lisp/saveplace.el (toggle-save-place, save-place-to-alist)
Juri Linkov [Tue, 22 Dec 2015 00:14:47 +0000 (02:14 +0200)]
* lisp/saveplace.el (toggle-save-place, save-place-to-alist)

(save-places-to-alist, save-place-dired-hook):
Check for dired-subdir-alist.  (Bug#19851)

10 years ago; Clarify comment added in previous commit.
Eli Zaretskii [Mon, 21 Dec 2015 18:07:55 +0000 (20:07 +0200)]
; Clarify comment added in previous commit.

10 years agoAdd FIXME comment re stack overflow and modules
Paul Eggert [Mon, 21 Dec 2015 10:54:51 +0000 (02:54 -0800)]
Add FIXME comment re stack overflow and modules

10 years agoRevert some recent emacs-module commentary
Paul Eggert [Mon, 21 Dec 2015 01:43:42 +0000 (17:43 -0800)]
Revert some recent emacs-module commentary

Most of the recently-added commentary was incorrect, due to the
possibility of stack overflow.

10 years agoSpelling fix: prefer "cooperate" to "co-operate"
Paul Eggert [Mon, 21 Dec 2015 01:31:52 +0000 (17:31 -0800)]
Spelling fix: prefer "cooperate" to "co-operate"

10 years agoPort undo fixes to -fno-common
Paul Eggert [Mon, 21 Dec 2015 01:27:28 +0000 (17:27 -0800)]
Port undo fixes to -fno-common

Port recent fix for Bug#21968 to platforms like 'gcc -fno-common'.
* src/keyboard.c, src/keyboard.h (point_before_last_command_or_undo)
(buffer_before_last_command_or_undo):
Declare in keyboard.h, and define in keyboard.c,
instead of assuming the traditional Unix relaxed ref-def linkage.

10 years agoImprove commentary for emacs-module.c
Philipp Stephani [Sun, 20 Dec 2015 19:10:03 +0000 (21:10 +0200)]
Improve commentary for emacs-module.c

* src/lisp.h: Document emacs-module.c assumptions about EQ and NILP.
* src/emacs-module.c (module_non_local_exit_get): Document that we
cannot use the current implementation.
(module_is_not_nil, module_eq): Document assumptions about EQ and
NILP.

10 years agoSuppress test on Mac OS X
Michael Albinus [Sun, 20 Dec 2015 17:51:24 +0000 (18:51 +0100)]
Suppress test on Mac OS X

* test/automated/tramp-tests.el (tramp--test-darwin-p): New defun.
(tramp--test-utf8): Use it.

10 years agoMerge branch 'scratch/follow' into emacs-25
Alan Mackenzie [Sun, 20 Dec 2015 12:33:30 +0000 (12:33 +0000)]
Merge branch 'scratch/follow' into emacs-25

This allows Isearch, etc., to work well when Follow Mode is active.

10 years ago* tramp-sh.el (tramp-get-ls-command-with-w-option): Improve check.
Michael Albinus [Sat, 19 Dec 2015 19:36:07 +0000 (20:36 +0100)]
* tramp-sh.el (tramp-get-ls-command-with-w-option): Improve check.

10 years agoFix last commit
Eli Zaretskii [Sat, 19 Dec 2015 16:05:44 +0000 (18:05 +0200)]
Fix last commit

* doc/emacs/rmail.texi (Rmail Deletion): Document new behavior of 'u'
with numeric argument.

10 years agoDocument new features of Rmail
Eli Zaretskii [Sat, 19 Dec 2015 15:43:11 +0000 (17:43 +0200)]
Document new features of Rmail

* doc/emacs/rmail.texi (Rmail Summary Edit, Rmail Deletion):
Document new behavior of 'd' and 'C-d' with numeric argument.
(Rmail Display): Document the rendering of HTML MIME parts.

10 years ago; * etc/NEWS: More Info-related copyedits
Eli Zaretskii [Sat, 19 Dec 2015 15:21:05 +0000 (17:21 +0200)]
; * etc/NEWS: More Info-related copyedits

10 years ago; * etc/NEWS: Rearrange Info-related entries
Eli Zaretskii [Sat, 19 Dec 2015 15:20:02 +0000 (17:20 +0200)]
; * etc/NEWS: Rearrange Info-related entries

10 years agoImprove documentation of new cl-lib functions
Eli Zaretskii [Sat, 19 Dec 2015 15:17:40 +0000 (17:17 +0200)]
Improve documentation of new cl-lib functions

* doc/misc/cl.texi (Predicates on Numbers, Numerical Functions):
Fix wording.

10 years ago; * etc/NEWS: Copyedits and rearrangements. Add entry about Info-quoted.
Eli Zaretskii [Sat, 19 Dec 2015 14:58:31 +0000 (16:58 +0200)]
; * etc/NEWS: Copyedits and rearrangements.  Add entry about Info-quoted.

10 years agoDocument the new feature of 'minibuffer-with-setup-hook'
Eli Zaretskii [Sat, 19 Dec 2015 14:35:42 +0000 (16:35 +0200)]
Document the new feature of 'minibuffer-with-setup-hook'

* lisp/files.el (minibuffer-with-setup-hook): Clarify how FUN is
added to `minibuffer-setup-hook'.

10 years agoDocument new features of Font Lock
Eli Zaretskii [Sat, 19 Dec 2015 14:14:11 +0000 (16:14 +0200)]
Document new features of Font Lock

* doc/lispref/modes.texi (Other Font Lock Variables): Document
'font-lock-flush-function' and 'font-lock-ensure-function'.
(Font Lock Basics): Document the basic fontification functions
referenced in "Other Font Lock Variables".

* lisp/font-lock.el (font-lock-flush, font-lock-ensure): Doc fix.

10 years agoDocument new features of Rectangle mode
Eli Zaretskii [Sat, 19 Dec 2015 12:40:19 +0000 (14:40 +0200)]
Document new features of Rectangle mode

* doc/emacs/killing.texi (Rectangles): Document "C-x C-x" in
rectangle-mark-mode.

10 years agoManual followup to last change
Eli Zaretskii [Sat, 19 Dec 2015 12:19:12 +0000 (14:19 +0200)]
Manual followup to last change

* doc/lispref/display.texi (Displaying Messages): Sync with the
doc string.  (Bug#22210)

10 years agoClarify doc string of 'display-message-or-buffer'
Eli Zaretskii [Sat, 19 Dec 2015 11:34:34 +0000 (13:34 +0200)]
Clarify doc string of 'display-message-or-buffer'

* lisp/simple.el (display-message-or-buffer): Doc fix.  Suggested
by Sebastian Wiesner <swiesner@lunaryorn.com>.  (Bug#22210)

10 years ago* doc/emacs/emacs.texi (Top): Update top-level menus.
Eli Zaretskii [Sat, 19 Dec 2015 11:22:26 +0000 (13:22 +0200)]
* doc/emacs/emacs.texi (Top): Update top-level menus.

10 years ago* doc/lispref/elisp.texi (Top): Update top-level menus.
Eli Zaretskii [Sat, 19 Dec 2015 11:04:36 +0000 (13:04 +0200)]
* doc/lispref/elisp.texi (Top): Update top-level menus.

10 years agoDocument how to avoid file-local variables that aren't
Eli Zaretskii [Sat, 19 Dec 2015 10:37:49 +0000 (12:37 +0200)]
Document how to avoid file-local variables that aren't

* doc/emacs/custom.texi (Specifying File Variables): Describe how
to prevent Emacs from interpreting unrelated text as file-local
variables.  (Bug#22166)

10 years agoFix a typo in eterm-color's termcap entry
Dave Thomas [Sat, 19 Dec 2015 10:17:10 +0000 (12:17 +0200)]
Fix a typo in eterm-color's termcap entry

* lisp/term.el (term-termcap-format): Fix a typo in the "ue="
entry.  (Bug#22184)

Copyright-paperwork-exempt: yes

10 years agoAllow 'browse-url-emacs' visit non-existent URLs
Eli Zaretskii [Sat, 19 Dec 2015 09:54:18 +0000 (11:54 +0200)]
Allow 'browse-url-emacs' visit non-existent URLs

* lisp/url/url-handlers.el (url-insert-file-contents): Don't
signal an error if VISIT is non-nil, to more faithfully emulate
the behavior of 'insert-file-contents'.  (Bug#22160)

10 years agoRemove SunOS 4.x cruft
Paul Eggert [Sat, 19 Dec 2015 01:10:50 +0000 (17:10 -0800)]
Remove SunOS 4.x cruft

Support for SunOS 4.x was removed in Emacs 23 but some cruft was left behind.
* lib-src/pop.c [sun]: Remove no-longer-needed include.
* lwlib/xlwmenu.c (SUNSO41): Remove.

10 years agoMerge from gnulib
Paul Eggert [Fri, 18 Dec 2015 23:41:45 +0000 (15:41 -0800)]
Merge from gnulib

This mostly commentary fixes.
* doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib.
* lib/gnulib.mk: Regenerate with new gnulib-tool.

10 years agoMinor fixes in Tramp
Michael Albinus [Fri, 18 Dec 2015 16:45:24 +0000 (17:45 +0100)]
Minor fixes in Tramp

* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Reorder ls arguments.

* lisp/net/tramp.el (tramp-dissect-file-name): Fix docstring.

10 years agoMake tramp a built-in package
Michael Albinus [Fri, 18 Dec 2015 16:32:52 +0000 (17:32 +0100)]
Make tramp a built-in package

* lisp/finder.el (finder-compile-keywords): Update
`package--builtins' also when Version: keyword is available.

* lisp/net/trampver.el: Add Version: keyword.
(tramp-version): Change it to "2.2.13.25.1", in order to be
compatible with `version-to-list'.

10 years ago* etc/tutorials/TUTORIAL.it: Update and fix typos.
Lele Gaifax [Fri, 18 Dec 2015 11:05:29 +0000 (13:05 +0200)]
* etc/tutorials/TUTORIAL.it: Update and fix typos.

10 years agoRename `recenter-group' to `recenter-window-group'
Alan Mackenzie [Fri, 18 Dec 2015 10:40:49 +0000 (10:40 +0000)]
Rename `recenter-group' to `recenter-window-group'

* doc/lispref/windows.texi (Textual Scrolling)
* lisp/window.el (top level, recenter-group)
* lisp/follow.el (follow-mode)
* lisp/isearch.el (isearch-back-into-window): Rename `recenter-group' to
`recenter-window-group' and `recenter-group-function' to
`recenter-window-group-function'.

10 years agoFix vertical-motion in tabulated-list mode
Eli Zaretskii [Fri, 18 Dec 2015 10:26:17 +0000 (12:26 +0200)]
Fix vertical-motion in tabulated-list mode

* src/indent.c (Fvertical_motion): When moving from line beginning
to point under line truncation, assume overshoot by one line only
if point actually lies beyond the window's right margin.
(Bug#22194)

10 years agoDon't have help functions call x-display-pixel-width/-height on ttys
Martin Rudalics [Fri, 18 Dec 2015 10:03:03 +0000 (11:03 +0100)]
Don't have help functions call x-display-pixel-width/-height on ttys

* lisp/help.el (temp-buffer-max-height, temp-buffer-max-width):
Don't call x-display-pixel-width/-height on ttys.

10 years agoUse 'hg id' in vc-hg-previous-revision
Dmitry Gutov [Fri, 18 Dec 2015 04:58:49 +0000 (06:58 +0200)]
Use 'hg id' in vc-hg-previous-revision

* lisp/vc/vc-hg.el (vc-hg-previous-revision):
Use 'hg id' to retrieve it (bug#22032).

10 years ago* lisp/follow.el (follow-sit-for): Remove (it's redundant).
Alan Mackenzie [Thu, 17 Dec 2015 21:06:39 +0000 (21:06 +0000)]
* lisp/follow.el (follow-sit-for): Remove (it's redundant).

10 years agoFix a typo in the Emacs manual
Eli Zaretskii [Thu, 17 Dec 2015 19:06:11 +0000 (21:06 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/trouble.texi (Sending Patches): Fix a typo.  Reported
by Lele Gaifax <lele@metapensiero.it>.  (Bug#22193)

10 years agoFix parsing netrc entries with ports
Eli Zaretskii [Thu, 17 Dec 2015 18:31:25 +0000 (20:31 +0200)]
Fix parsing netrc entries with ports

* lisp/gnus/auth-source.el (auth-source-ensure-strings): Don't
make a list out of 't'.  (Bug#22188)

* test/automated/auth-source-tests.el
(auth-source-test-netrc-parse-entry): New test.

10 years agoFix typo in Doug Lea malloc configure log
Paul Eggert [Thu, 17 Dec 2015 18:09:02 +0000 (10:09 -0800)]
Fix typo in Doug Lea malloc configure log

* configure.ac (emacs_cv_var_doug_lea_malloc):
Fix typo that confused the log output of 'configure'.

10 years ago* etc/NEWS: Mention the new pcase patterns `seq' and `map'.
Nicolas Petton [Wed, 16 Dec 2015 17:40:07 +0000 (18:40 +0100)]
* etc/NEWS: Mention the new pcase patterns `seq' and `map'.

10 years ago; * etc/NEWS: Fix last commit.
Eli Zaretskii [Wed, 16 Dec 2015 15:54:55 +0000 (17:54 +0200)]
; * etc/NEWS: Fix last commit.

10 years ago* etc/NEWS: Move entry on pcase to correct section
Alan Mackenzie [Wed, 16 Dec 2015 15:29:13 +0000 (15:29 +0000)]
* etc/NEWS: Move entry on pcase to correct section

(Accidentally omitted from previous commit)

10 years ago; * doc/emacs/programs.texi (Lisp Doc): Clarofy last change.
Eli Zaretskii [Wed, 16 Dec 2015 15:24:43 +0000 (17:24 +0200)]
; * doc/emacs/programs.texi (Lisp Doc): Clarofy last change.

10 years ago; * doc/emacs/programs.texi (Lisp Doc): Clarify last change.
Eli Zaretskii [Wed, 16 Dec 2015 15:18:45 +0000 (17:18 +0200)]
; * doc/emacs/programs.texi (Lisp Doc): Clarify last change.

10 years agoAdd documentation for changes to Show Paren mode.
Alan Mackenzie [Wed, 16 Dec 2015 15:09:55 +0000 (15:09 +0000)]
Add documentation for changes to Show Paren mode.

* lisp/paren.el (show-paren-highlight-openparen): Enhance doc string.

* doc/emacs/programs.texi (Matching): Add descriptions of some pertinent user
options, including the new show-paren-when-point-inside-paren and
show-paren-when-point-in-periphery.

* etc/NEWS (.. Specialized Modes ...): Add an entry for Show Paren mode.
Move an entry on pcase to the Lisp Changes section.

10 years ago; * etc/NEWS: Mark message-mode entry as not requiring documentation.
Eli Zaretskii [Wed, 16 Dec 2015 14:52:52 +0000 (16:52 +0200)]
; * etc/NEWS: Mark message-mode entry as not requiring documentation.

10 years agoDocument Eldoc changes
Eli Zaretskii [Wed, 16 Dec 2015 14:38:06 +0000 (16:38 +0200)]
Document Eldoc changes

* doc/emacs/programs.texi (Lisp Doc): Document Global Eldoc mode.

10 years agoFix invocation of Python and Guile interpreters from gdb-mi
Eli Zaretskii [Wed, 16 Dec 2015 10:40:33 +0000 (12:40 +0200)]
Fix invocation of Python and Guile interpreters from gdb-mi

* lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp): Add
commands for interactive Python and Guile interpreters.
(gdb-send): Recognize various ways of exiting from Python and
Guile interpreters and returning to GDB.  For details, see
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00693.html
and http://stackoverflow.com/questions/31514741.

10 years agoRemove attempt to use C11 threads
Paul Eggert [Wed, 16 Dec 2015 07:10:12 +0000 (23:10 -0800)]
Remove attempt to use C11 threads

C11 threads are not needed for Emacs now, and their use is causing
hassles on FreeBSD 10.x.  Problem reported by Ashish SHUKLA in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00648.html
* configure.ac: Do not check for C11 threads. Remove unnecessary
fiddling with CPPFLAGS when configuring pthreads.
* src/emacs-module.c (main_thread, check_main_thread)
(module_init): Do not worry about C11 threads.

10 years agoSet utf8 encoding with stty in Tramp
Michael Albinus [Tue, 15 Dec 2015 22:54:11 +0000 (23:54 +0100)]
Set utf8 encoding with stty in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move up uname check.  Handle Mac OS X eol encoding.  Set utf8
encoding with stty.

10 years agoTidy up documentation associated with window groups.
Alan Mackenzie [Tue, 15 Dec 2015 11:41:54 +0000 (11:41 +0000)]
Tidy up documentation associated with window groups.

* doc/lispref/windows.texi (Basic Windows): Add an @anchor for "Window
Groups".  Correct example function to `window-group-start'.
(Window Start and End, Textual scrolling): Point to the new anchor.  State
that (most of) the args in window group functions have the same meaning as for
the corresponding window primitives.

* doc/lispref/positions.texi (Screen Lines).  Same as above.

10 years agoComplete last commit
Michael Albinus [Tue, 15 Dec 2015 11:18:16 +0000 (12:18 +0100)]
Complete last commit

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move uname check up.  Handle Mac OS X eol encoding.

10 years agoHandle Mac OS X eol encoding in Tramp
Michael Albinus [Tue, 15 Dec 2015 11:05:37 +0000 (12:05 +0100)]
Handle Mac OS X eol encoding in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Handle Mac OS X eol encoding.

10 years agoFix variable name typo in compute_tip_xy
YAMAMOTO Mitsuharu [Tue, 15 Dec 2015 08:53:44 +0000 (17:53 +0900)]
Fix variable name typo in compute_tip_xy

* src/w32fns.c (compute_tip_xy):
* src/xfns.c (compute_tip_xy): Modify *root_x instead of *root_y
when `right' is integer.

10 years ago* lisp/ibuffer.el: Add ability to (un-)mark or delete buffers in the region.
foudfou [Sat, 12 Dec 2015 21:06:03 +0000 (22:06 +0100)]
* lisp/ibuffer.el: Add ability to (un-)mark or delete buffers in the region.

10 years agoRevert "Fix rx matcher overflow without limiting"
Tassilo Horn [Mon, 14 Dec 2015 17:46:47 +0000 (18:46 +0100)]
Revert "Fix rx matcher overflow without limiting"

This reverts commit fe27e037663d36be3e5741c2ce86ab4ee8017db1.

10 years agoIspell: Bind isearch-regexp-function to nil around call to isearch..-new-loop
Alan Mackenzie [Mon, 14 Dec 2015 17:29:45 +0000 (17:29 +0000)]
Ispell: Bind isearch-regexp-function to nil around call to isearch..-new-loop

* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay): bind
isearch-regexp-function to nil around call to isearch-lazy-highligh-new-loop.

10 years agoFix rx matcher overflow without limiting
Tassilo Horn [Mon, 14 Dec 2015 17:23:31 +0000 (18:23 +0100)]
Fix rx matcher overflow without limiting

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve last
change to the regexp without imposing a limit on the length of the
options.